package com.ruoyi.cderp.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品库存对象 tbl_product_stock
 *
 * @author ruoyi
 * @date 2025-03-01
 */
public class TblProductStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private String scId;

    // 仓库编号
    private String scCode;

    // 仓库名称
    private String scName;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String productId;

    // 商品编号
    private String productCode;

    // 商品名称
    private String productName;

    // 类别id
    private String categoryId;

    // 商品类目
    private String productType;

    // 品牌id
    private String brandId;

    // 商品品牌
    private String productBrand;

    // 商品sku编号
    private String skuCode;

    // 商品外部编号
    private String externalCode;

    // 单位
    private String unit;

    // 规格
    private String spec;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stockNum;

    // 档案采购价
    private BigDecimal purchasePrice;

    // 进税
    private Integer taxRate;

    // 销税
    private Integer saleTaxRate;

    public Integer getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(Integer taxRate) {
        this.taxRate = taxRate;
    }

    public Integer getSaleTaxRate() {
        return saleTaxRate;
    }

    public void setSaleTaxRate(Integer saleTaxRate) {
        this.saleTaxRate = saleTaxRate;
    }

    /** 含税价格 */
    @Excel(name = "含税价格")
    private BigDecimal taxPrice;

    /** 含税金额 */
    @Excel(name = "含税金额")
    private BigDecimal taxAmount;

    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public String getExternalCode() {
        return externalCode;
    }

    public void setExternalCode(String externalCode) {
        this.externalCode = externalCode;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getScCode() {
        return scCode;
    }

    public void setScCode(String scCode) {
        this.scCode = scCode;
    }

    public String getScName() {
        return scName;
    }

    public void setScName(String scName) {
        this.scName = scName;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getProductBrand() {
        return productBrand;
    }

    public void setProductBrand(String productBrand) {
        this.productBrand = productBrand;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setScId(String scId)
    {
        this.scId = scId;
    }

    public String getScId()
    {
        return scId;
    }
    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    public String getProductId()
    {
        return productId;
    }
    public void setStockNum(Long stockNum)
    {
        this.stockNum = stockNum;
    }

    public Long getStockNum()
    {
        return stockNum;
    }
    public void setTaxPrice(BigDecimal taxPrice)
    {
        this.taxPrice = taxPrice;
    }

    public BigDecimal getTaxPrice()
    {
        return taxPrice;
    }
    public void setTaxAmount(BigDecimal taxAmount)
    {
        this.taxAmount = taxAmount;
    }

    public BigDecimal getTaxAmount()
    {
        return taxAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("scId", getScId())
                .append("scCode", getScCode())
                .append("scName", getScName())
                .append("productId", getProductId())
                .append("productCode", getProductCode())
                .append("productName", getProductName())
                .append("productType", getProductType())
                .append("productBrand", getProductBrand())
                .append("skuCode", getSkuCode())
                .append("externalCode", getExternalCode())
                .append("unit", getUnit())
                .append("spec", getSpec())
                .append("stockNum", getStockNum())
                .append("taxPrice", getTaxPrice())
                .append("taxAmount", getTaxAmount())
                .toString();
    }
}
